<template>
    <div>
        <h1>登录页面</h1> 
        
    </div>
</template>

<script>
export default {
    name: 'LoginView',
    beforeRouteEnter(to,from,next){
        console.log('组件内守卫，要去'+to.path);
        next()
    }
}
</script>